package com.yulongtian.weekCompetition.month202212.week2;

/**
 * 第 93 场双周赛
 * 可
 *
 * @author yulongTian
 * @create 2022-12-10 22:22
 */
public class Test01 {
    public static void main(String[] args) {

    }

    public int maximumValue(String[] strs) {
        int res = 0;
        for (String str : strs) {

            //是否都是数字
            boolean flag = true;

            for (int i = 0; i < str.length(); i++) {
                //是数字
                if (str.charAt(i) >= '0' && str.charAt(i) <= '9') {
                } else {
                    flag = false;
                    break;
                }
            }

            if (flag) {
                res = Math.max(res, Integer.valueOf(str));
            } else {
                res = Math.max(res, str.length());
            }


        }


        return res;
    }

}
